class AccountInfoController{
    constructor($state,$rootScope,$scope,AccountService){
        Object.assign(this,{$state,$rootScope,$scope,AccountService});
        this.$rootScope.currentGroup= this.$state.params.cg;
        this.init();
    }
    init(){
        let self = this;
        this.AccountService.getAccountInfo({ignoreLoadingBar:true}).then(_success).catch(_error);
        function _success(data) {
            self.$rootScope.lotteryAccountInfo =data;
        };
        function _error(reason) {
            console.log("AccountInfoController.init(): "+ JSON.stringify(reason));
        };
    }
}
AccountInfoController.$inject = ["$state","$rootScope","$scope","AccountService"];

export default AccountInfoController;